package com.hgyc.mom.mes.enums;

/**
 * 工艺路线状态字典类
 * 自动生成的枚举类，请勿手动修改

 * @author fwj
 * @since 2025-07-01 16:51:33
 * @version 1.0
 **/
public enum ProcessRoutingStatusEnum {
    DRAFT("draft", "草稿"),
    SUBMIT("submit", "已提交"),
    APPROVED("approved", "已审核"),
    RELEASED("released", "已发布"),
    DISABLED("disabled", "已停用"),
    OBSOLETE("obsolete", "已作废")
    ;

    private final String value;
    private final String label;

    ProcessRoutingStatusEnum(String value, String label) {
        this.value = value;
        this.label = label;
    }

    public String getValue() {
        return this.value;
    }

    public String getLabel() {
        return this.label;
    }

    public static ProcessRoutingStatusEnum of(String value) {
        if (value == null) {
            return null;
        }
        for (ProcessRoutingStatusEnum item : ProcessRoutingStatusEnum.values()) {
            if (item.value.equals(value)) {
                return item;
            }
        }
        return null;
    }

    @Override
    public String toString() {
        return this.label;
    }
}

